-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pgf clashes with bookmarks #944
Comments
For exactly that reason I added the |
I made a small test with transparency, and it seemed to work without this code, but I wonder if the problem indicates that something is wrong with ghostscript or the bookmark code. |
I would suggest the patch to The --- bkm-dvips.def.orig 2020-11-06 14:51:12.383608024 +0100
+++ bkm-dvips.def 2020-11-06 14:52:32.586524468 +0100
@@ -60,10 +60,10 @@
\ProvidesFile{bkm-dvips.def}%
[2019/12/03 v1.28 bookmark driver for dvips (HO)]%
\def\BKM@PSHeaderFile#1{%
- \special{header=#1}%
+ \special{PSfile=#1}%
}
\def\BKM@filename{\jobname.out.ps}
-\BKM@PSHeaderFile\BKM@filename
+\AddToHook{shipout/lastpage}{\BKM@PSHeaderFile\BKM@filename}
\RequirePackage{atveryend}[2009/12/07]
\AfterLastShipout{\BKM@pdfmark@out}
\def\BKM@pdfmark@out{% |
I have uploaded a bookmark version with the fix suggested by @agrahn. It should appear at ctan soon. |
Thank you very much! I marked the issue as wont-fix because it wasn't fixed on the PGF side. |
Brief outline of the bug
As reported on tex.sx https://tex.stackexchange.com/questions/569700/conflict-between-tikz-and-bookmark-packages the bookmarks/outlines created by the bookmark package are lost on the latex-dvips-ps2pdf routed if pgf is loaded too.
I can reproduce this with a current texlive using the internal ghostscript (version 9.53.3). In texlive 2019 it works fine.
Minimal working example (MWE)
The
.ps
contains the bookmarks code, but when processing it withps2pdf
they are lost.I tracked the problem down to this code part in pgfsys-dvips.def (line 107ff):
If one remove/comment this, the bookmarks reappears.
The ghostscript documentation says about this device filter:
My (rather wild) guess is that the source of the problem is that with
bookmark
the outlines are not created with pdfmark commands in the page stream (ashyperref
does it), but with a ProcSet, and that this produces the "unexpected" output.The text was updated successfully, but these errors were encountered: